package com.xl6667.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xl6667.domain.ResponseResult;
import com.xl6667.domain.entity.Menu;

import java.util.List;

/**
* @author 熊磊
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service
* @createDate 2024-03-21 13:22:01
*/
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    ResponseResult getMenuList(String menuName, String status);

    ResponseResult addMenu(Menu menu);

    ResponseResult getMenu(Long id);

    ResponseResult putMenu(Menu menu);

    ResponseResult delMenu(Long id);

    ResponseResult getTreeselect();

    ResponseResult getRoleMenuTreeselect(Long id);
}
